﻿using System.ServiceModel;
using SilenthinkContract.Domain;

namespace SilenthinkContract
{
    [ServiceContract(Namespace = ServiceContract.Namespace)]
    public interface ILogService : IService
    {
        [OperationContract]
        AppError GetAppError(int id);
        [OperationContract]
        bool TruncateAppError(); 
        [OperationContract]
        PageList<AppError> GetPagedAppError(int index = 1, int size = 20, byte level = 0, string machineIp = null, string userName = null, string clientIp = null);
    }
}